#include <string>
#include <conio.h>
#include <cstring>
#include <math.h>

using namespace std;

#ifndef Parser__H
#define Parser__H

#ifndef PLAYER_H
#include "player.h"
#endif

#ifndef SHOP_H
#include "shop.h"
#endif

#ifndef HOUSE_H
#include "house.h"
#endif

#ifndef KALENDAR_H
#include "Kalendar.h"
#endif

#ifndef KURCACISLASH_H
#include "kurcacislash.h"
#endif

#ifndef KURCACIWATER_H
#include "kurcaciwater.h"
#endif

#ifndef KURCACIHARVEST_H
#include "kurcaciharvest.h"
#endif

class Parser {
    private : 
    char tabparser[100];
    int gScan;
	bool init;
	bool HALT;//buat nangkep exit
    int i;
    int c;
    public :
	void ignoreBlank(char[], int, int&);
	player* aplayer;
	KurcaciHarvest *akurcharvest;
	KurcaciWater *akurcwater;
	KurcaciSlash *akurcslash;
	field* afield;
	shop* ashop;
	house* ahouse;
    Parser();
    ~Parser();
    void getInput();
	bool getHALT() const ;
    void initialize();
    char* getString();
	void New(string);
	void Load(string);
	void Save(string);
	int StringToInteger(char[]);
        void printStatus();
};

#endif
    
    
